package com.recsmile.sgs.client.commonds;

import com.recsmile.sgs.client.card.Card;
import com.recsmile.sgs.client.controller.WineUsableGameController;
import com.recsmile.sgs.client.entity.Game;

public class UseWineInGameServerCommand extends InGameServerCommand {

	private static final long serialVersionUID = 5470029734787854360L;
	
	private final Card wine;

	public UseWineInGameServerCommand(Card card) {
		this.wine = card;
	}

	@Override
	public void execute(Game game) {
		game.<WineUsableGameController>getGameController().onWineUsed(wine);
	}

}